<template>
  <div id="container"></div>
</template>

<script>
import { gMap } from "../assets/js/gMap.js";
export default {
  data() {
    return {
      map: null
    };
  },
  mounted() {
    this.map = gMap.createMap("container", {
      zoom: 11, //级别
      center: [112.938888, 28.228272], //中心点坐标
      viewMode: "3D" //使用3D视图
    });
    console.log(this.map);
    console.log(gMap.getMap());
  },
  methods: {}
};
</script>
<style scoped>
#container {
  width: 100%;
  height: 100%;
}

</style>
